/*/ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 初始化 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/*/ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 顶部栏样式 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
/*. 顶部栏外壳 */
.top-nav {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/*. 左侧logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.logo img {
    height: 40px;
}

/*. 右侧部分外壳 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/*. 用户信息外壳 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*. 用户名 */
.username {
    font-weight: 500;
}

/*. 权限标识  */
.permission-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

/*. 权限标识样式 */
.permission-badge.visitor {
    background: #95a5a6;
    color: white;
}

.permission-badge.user {
    background: #3498db;
    color: white;
}

.permission-badge.member {
    background: #9b59b6;
    color: white;
}

.permission-badge.admin {
    background: #e67e22;
    color: white;
}

.permission-badge.super-admin {
    background: #e74c3c;
    color: white;
}

.permission-badge.developer {
    background: #2c3e50;
    color: white;
}

/*. 按钮外壳 */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #f8f9fa;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}


/*/ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 按钮样式 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓  */

/*. 导航按钮样式 */
.nav-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*. 按钮悬浮样式 */
.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/*. 按钮激活样式 */
.nav-button.active {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

/*/ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 底部样式 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */


/*. 网站底部信息样式 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/*. 网站底部信息样式 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/*. 底部链接样式 */
.footer-content p {
    margin-bottom: 10px;
}

/*. 底部链接样式 */
.icp-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/*. 底部链接样式 */
.icp-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

/*. 底部链接样式 */
.icp-info a:hover {
    color: #2196F3;
}

/*. 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 15px;
    }

    .icp-info {
        flex-direction: column;
        gap: 10px;
    }
}



/*/ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ Toast 通知 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
/*. Toast 通知外壳 */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

/*. Toast 通知 */
.toast {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
    animation: slideUpIn 0.3s ease forwards;
    pointer-events: auto;
}

/*. Toast 消息通知样式 */
.toast.info {
    background: #147EC9;
}

/*. Toast 成功通知样式 */
.toast.success {
    background: #11AD45;
}

/*. Toast 警告通知样式 */
.toast.warning {
    background: #F5A300;
}

/*. Toast 错误通知样式 */
.toast.error {
    background: #E60914;
}

/*. Toast 消息通知滑入动画 */
@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*. Toast 消息通知滑出动画 */
@keyframes slideUpOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}